package de.joergviola.mobj.shared;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface EntityReader {
	String readString(String name);

	Long readLong(String name);

	Double readDouble(String name);

	Date readDate(String name);

	List<Long> readListLong(String name);

	List<String> readListString(String name);

	String[] readStringArray(String name);

	<T extends Persistable> void readPersistable(String name, Class<T> clazz,
			AsyncCallback<T> setter) throws ObjectNotFoundException,
			UnknownEntityException;
}
